package com.hxzy.dto.req.back;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author wy
 * @Description 后台登录接收参数对象
 * @Date 2023/4/4 15:50
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class LoginDTO {

    /**
     * 登录账户
     */
    @NotBlank(message = "登录账户不能为空")
    private String loginName;

    /**
     * 登录密码
     */
    @NotBlank(message = "登录密码不能为空")
    @Length(min = 2,max = 30,message = "密码长度必须在2-30个字符之间")
    private String loginPwd;

    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空")
    private String code;

    /**
     * 验证码在redis中存放的标识
     */
    @NotBlank(message = "验证码标识不能为空")
    private String uuid;
}
